package com.itheima.controller;

import com.itheima.ITestService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author CSY
 * 2022/5/17    23:06
 */
@RestController
public class TestController {

    @DubboReference
    private ITestService iTestService;


    @GetMapping("/test")
    public String test(){

        String test = iTestService.test();
        return test;
    }

    @GetMapping("/qwer")
    public int qwer(){

        return iTestService.q();
    }
}
